package com.jd.util;

import java.util.Date;

public class OrderUtil {
	public static String getOrderIdByUUId() {
        /*int machineId = 1;//
        int hashCodeV = UUID.randomUUID().toString().hashCode();
        if(hashCodeV < 0) {//
            hashCodeV = - hashCodeV;
        }
        // 0
        // 4
        // d
        return machineId + String.format("%015d", hashCodeV)*/
        Date date = new Date();
		long time = date.getTime();
		
		//������ 6λ������Ӻ���ֵ
		int intFlagE = (int)((Math.random()*9+1)*100000);
		int intFlagB = (int)((Math.random()*9+1)*10);
		String flagE = String.valueOf(intFlagE);
		String flagB = String.valueOf(intFlagB);
		
		String stringTime = String.valueOf(time);
		String spare1 = flagB+stringTime+flagE;
        return spare1;
    }
}
